<?php
function tippage(){
print <<<EOT
<div id="user-content-right-main-tip-content">
	<div id="tip-title">
		您还未开通“顶尖会员”服务!
	</div>
	<div id="tip-main">
		<ol>
			<li>会员可以扩充20个挂Q配额</li>
			<li>会员可以设置SID自动更新</li>
			<li>会员可以批量挂Q、更快捷</li>
			<li>会员可以设置QQ掉线邮箱通知</li>
		</ol>
		<a href="./spread.php">
			马上去开通
		</a>
	</div>
</div>
EOT;
}

function tipset($cookieuser){
$mysql_userinfo = mysql_query("SELECT * FROM xige_info WHERE email='$cookieuser'");
$userinfo=mysql_fetch_array($mysql_userinfo);
$sidnew=$userinfo['sidnew'];
$batch=$userinfo['batch'];
$emailsend=$userinfo['emailsend'];
$reply=$userinfo['reply'];
$replyinfo=$userinfo['replyinfo'];

if ($sidnew==0){
$sidnew1='';
$sidnew0='checked="checked"';
}else{
$sidnew1='checked="checked"';
$sidnew0='';
}

if ($batch==0){
$batch1='';
$batch0='checked="checked"';
}else{
$batch1='checked="checked"';
$batch0='';
}

if ($emailsend==0){
$emailsend1='';
$emailsend0='checked="checked"';
}else{
$emailsend1='checked="checked"';
$emailsend0='';
}

if ($reply==0){
$reply1='';
$reply0='checked="checked"';
}else{
$reply1='checked="checked"';
$reply0='';
}

print <<<EOT
<form action="" method="post">
<div id="user-content-right-main-tip-a">
	<div id="user-content-right-main-tip-a-a">
		SID自动更新
	</div>
	<div id="user-content-right-main-tip-a-b">
		开启<input type="radio" name="sidnew" value="1" $sidnew1 />
		关闭<input type="radio" name="sidnew" value="0" $sidnew0 />
	</div>
</div>
<div id="user-content-right-main-tip-a">
	<div id="user-content-right-main-tip-a-a">
		批量导入QQ
	</div>
	<div id="user-content-right-main-tip-a-b">
		开启<input type="radio" name="qqbatch" value="1" $batch1 />
		关闭<input type="radio" name="qqbatch" value="0" $batch0 />
	</div>
</div>
<div id="user-content-right-main-tip-a">
	<div id="user-content-right-main-tip-a-a">
		QQ离线邮件通知
	</div>
	<div id="user-content-right-main-tip-a-b">
		开启<input type="radio" name="emailhi" value="1" $emailsend1 />
		关闭<input type="radio" name="emailhi" value="0" $emailsend0 />
	</div>
</div>
<div id="user-content-right-main-tip-a">
	<div id="user-content-right-main-tip-a-a">
		消息自动回复
	</div>
	<div id="user-content-right-main-tip-a-b">
		开启<input type="radio" name="reply" value="1" $reply1 />
		关闭<input type="radio" name="reply" value="0" $reply0 />
	</div>
</div>
</form>
EOT;
}
?>